home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / seyon / Imakefile < prev    next >
Makefile  |  1995-06-21  |  2KB  |  85 lines

  1. /*
  2.  * ======================================================================
  3.  */
  4.  
  5. /*
  6.  * Never edit any of the rest of this file unless you really really
  7.  * know what you're doing. The rest of this file should normally not
  8.  * be touched at all.
  9.  */
  10.  
  11. CDEBUGFLAGS = -O
  12. DEFINES = -D_SVID3
  13. DEPLIBS = 
  14. LOCAL_LIBRARIES = XawClientLibs
  15. DESTDIR=/usr/skunk
  16. BINDIR=/bin
  17. LIBDIR=/lib
  18. MKDIRHIER=/usr/bin/X11/mkdirhier
  19. #HELPFILE = -DHELPFILE=\"/u/lib/seyon/seyon.help\"
  20. HELPFILE = -DHELPFILE=\"/usr/skunk/lib/seyon/seyon.help\"
  21.  
  22.  
  23. /* SYS_LIBRARIES = -lm */
  24.  
  25. SRCS  = Seyon.c SeActions.c SeScan.c SeDial.c SeErr.c SeGeneric.c \
  26.         SeInit.c SeIo.c SeMisc.c SeParse.c SePort.c SeScript.c \
  27.         SeSet.c SeSig.c SeString.c SeSubs.c SeSubsX.c SeSupp.c \
  28.         SeTerm.c SeTrans.c SeWin.c MultiList.c
  29. OBJS  = Seyon.o SeActions.o SeScan.o SeDial.o SeErr.o SeGeneric.o \
  30.         SeInit.o SeIo.o SeMisc.o SeParse.o SePort.o SeScript.o \
  31.         SeSet.o SeSig.o SeString.o SeSubs.o SeSubsX.o SeSupp.o \
  32.         SeTerm.o SeTrans.o SeWin.o MultiList.o
  33.  
  34.  
  35. /* These are apparently missing from versions of X prior to R5 */
  36.  
  37. #ifndef InstallNonExecFile
  38. #define    InstallNonExecFile(file,dest)                    @@\
  39. install:: file                                @@\
  40.     $(INSTALL) -c $(INSTDATFLAGS) file $(DESTDIR)dest
  41. #endif /* InstallNonExecFile */
  42.  
  43. #ifndef InstallAppDefaultsLong
  44. #define    InstallAppDefaultsLong(file,class)                @@\
  45. install:: file.ad                            @@\
  46.     $(INSTALL) -c $(INSTAPPFLAGS) file.ad $(DESTDIR)$(XAPPLOADDIR)/class
  47. #endif /* InstallAppDefaultsLong */
  48.  
  49. AllTarget(version seyon)
  50. ComplexProgramTarget(seyon)
  51. SpecialObjectRule(SeInit.o,SeInit.c,$(HELPFILE))
  52.  
  53. InstallAppDefaults(Seyon)
  54. InstallAppDefaultsLong(Seyon-co,Seyon-color)
  55. InstallNonExecFile(seyon.help,$(LIBDIR)/seyon)
  56.  
  57. install::
  58.     @if [ ! -d $(HOME)/.seyon ]; then mkdir $(HOME)/.seyon; fi; \
  59.     echo "=== Copying example files (no overwrite) to $(HOME)/.seyon ..."; \
  60.     for i in phonelist protocols startup script.*; do \
  61.         if [ ! -f $(HOME)/.seyon/$$i ]; then cp $$i $(HOME)/.seyon; fi;\
  62.     done;
  63.  
  64. clean::
  65.     rm -f version.h y.tab.* SeParse.c
  66.  
  67. Seyon.c: Seyon.ad.h version.h
  68.  
  69. Seyon.ad.h: Seyon.ad
  70.     sh ./ad2c $? > $@
  71.  
  72. version:
  73.     rm -f version.h
  74.  
  75. version.h:
  76.     sh ./makever.sh
  77.  
  78. SeScan.o: y.tab.h
  79.  
  80. y.tab.h y.tab.c: SeParse.y
  81.     $(YACC) -d SeParse.y
  82.  
  83. SeParse.c: SeParse.y
  84.     $(MV) y.tab.c SeParse.c
  85.